package sk.tuke.constraintbuilder;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

import sk.tuke.constraintbuilder.views.ConstraintExplorerView;

public class PerspectiveFactory implements IPerspectiveFactory {
	
	@Override
	public void createInitialLayout(IPageLayout layout) {
		// Get the editor area.
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(true);
		
        // Place navigator and outline to left of
        // editor area.
//        layout.addView(ConstraintList.ID, IPageLayout.LEFT, 0.25f, editorArea);
		layout.addView(ConstraintExplorerView.ID, IPageLayout.LEFT, 0.25f, editorArea);
		
        //layout.addView(ConstraintBuilderView.ID, IPageLayout.RIGHT, 0.50f, ConstraintList.ID);

        
     // Put the Outline view on the left.
//        layout.addView(IPageLayout.ID_OUTLINE,IPageLayout.LEFT,0.25f,editorArea);
//		      
		// Put the Favorites view on the bottom with 
		// the Tasks view.
//		IFolderLayout bottom = layout.createFolder("bottom",IPageLayout.BOTTOM,0.66f,editorArea);
//		bottom.addView(TemplateView.ID);
//		bottom.addView(IPageLayout.ID_TASK_LIST);
//		bottom.addPlaceholder(IPageLayout.ID_PROBLEM_VIEW);

	}

}
